#include <iostream>
using namespace std;

class Amount{
private:
    double total,rate;
public :
    Amount(double t,double r)
    {
        total = t;
        rate = r;
    }
    double count(Amount &a)
    {
        a.total += a.rate * a.total;
        return  a.total;
    }

    void test();
};

void Amount::test()
{
    std::cout << "test....." << std::endl;
}



int main() {
    Amount a1(1000.0,0.035),a2(755.0,0.025);

    std::cout << "count(a1):" << count(a1) <<"   count(a2):" << count(a2) << std::endl;
    return 0;
}
